import * as echarts from 'echarts';
import 'echarts-gl';
export function OptionFun() {
    const option = {
        legend: {
            show: false
        },

        radar: {
            name: {
                textStyle: {
                    color: 'orange'  // 将颜色设置为绿色
                }
            },
            indicator: [
                { name: 'JavaScript', max: 10000 },
                { name: 'CSS', max: 10000 },
                { name: 'Vue', max: 10000 },
                { name: 'React', max: 10000 },
                { name: 'Angular', max: 10000 },
                { name: 'Node', max: 10000 }
            ],
            splitLine: {
                lineStyle: {
                    color: 'orange'
                }
            }
        },
        series: [
            {
                type: 'radar',
                itemStyle: {
                    color: '#00B180', //线和节点的样式
                },
                areaStyle: {
                    color: {
                        type: 'radial',
                        x: 0.5,
                        y: 0.5,
                        r: 0.5,
                        colorStops: [{
                            offset: 0, color: 'rgba(0,177,128,0.1)' // 0% 处的颜色
                        }, {
                            offset: 1, color: 'rgba(0,177,128,0.8)' // 100% 处的颜色
                        }],
                        global: false // 缺省为 false
                    }
                },
                data: [
                    {
                        value: [9000, 9000, 8500, 8250, 6950, 6200],
                        name: '哈哈'
                    }
                ]
            }
        ]
    };
    return option
}